
public class Complex {
int real,ins;//实部 虚部
/*public void add(Complex complex) {
	System.out.println(this.real+complex.real);
	System.out.println(this.ins+complex.ins);
}*/
public Complex add(Complex complex) {//引用型
	return new Complex(this.real+complex.real,this.ins+complex.ins);
}
public Complex(int real, int ins) {
	super();
	this.real = real;
	this.ins = ins;
}
@Override
public String toString() {
	return "Complex [real=" + real + ", ins=" + ins + "]";
}



}
